﻿using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {

    public static Player instante;
    public float fSpeed;
    
    // Make animation

    float rotateStep = 30.0f;
    float moveStep = 0.5f;
    // End make animation



	// Use this for initialization
	void Start () {
        instante = this;
        fSpeed = 0.0f;
	}


	// Update is called once per frame
	void Update () {

    }


    #region Make animation
    public void MakeCollision(int type)
    { 
        switch (type)
        {
            case 1:
                HitOilAnim();
                break;
            case 2:
                HitBarrierAnim();
                break;
            case 3:
                HitCarAnim();
                break;
        }
        
    }

    void HitOilAnim()
    {
        // Implement later
    }

    void HitCarAnim()
    {
        // Implement later
    }

    void HitBarrierAnim()
    {
        // Implement later
    }

    #endregion

}